<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <title>
      Pomelo
    </title>
    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <meta http-equiv="content-style-type" content="text/css" />
    <meta http-equiv="content-scripte-type" content="text/javascript" />
    <meta name="author" content="netease" />
    <meta name="version" content="1.0" />
    <meta name="keywords" content="pomelo" />
    <link type="text/css" rel="stylesheet" href="css/base.css" />
    <script src="js/lib/build/build.js" type="text/javascript"></script>
    <script type="text/javascript">
      require('boot');
    </script> 
    <script type="text/javascript">
      var pomelo = window.pomelo;
      var host = "127.0.0.1";
      // host = "47.107.48.79"
      var queryEntry = function(callback) {
        var route = 'gate.gateHandler.queryClientEntry';
        pomelo.init({
          host: host,
          port: "3910",
          log: true
        }, function(data) {
          console.log("!!!!!")
          console.log(data)
          pomelo.request(route, {}, function(data) {
            pomelo.disconnect();
            if(data.code === 500) {
              console.log(data)
              return;
            }
            callback(host, data.port);
          });
        });
      };
      function entry(unionid) {
        queryEntry(function(host,port) {
          pomelo.init({
            host: host,
            port: port,
            log: true
          },function() {
            pomelo.request("connector.entryHandler.entryAccount",{unionid : unionid}, function(data) {
                console.log(data);
                if(data.flag){
                  pomelo.request("connector.entryHandler.tokenLogin",{unionid : data.unionid,token:data.token}, function(data) {
                      console.log(data);
                  });
                }else{
                  //todo  登陆失败
                }
            });
          });
        })
      }
      var quickEntryAccount = function() {
        queryEntry(function(host,port) {
          pomelo.init({
            host: host,
            port: port,
            log: true
          },function() {
            var token = "1"
            var uid = "1"
            var channel_code = "1"
            pomelo.request("connector.entryHandler.quickEntry",{token : token,uid:uid,channel_code:channel_code}, function(data) {
                console.log(data);
                if(data.flag){
                  pomelo.request("connector.entryHandler.tokenLogin",{unionid : data.unionid,token:data.token}, function(data) {
                      console.log(data);
                  });
                }else{
                  //todo  登陆失败
                }
            });
          });
        })
      }
      pomelo.on("close",function(reason) {
        console.log("close",reason)
      })
      pomelo.on("onMessage",function(data) {
        console.log("onMessage")
        console.log(data)
      })
      pomelo.on("escort",function(data) {
        console.log("escort")
        console.log(data)
      })
      pomelo.on("onChat",function(data) {
        console.log("onChat")
        console.log(data)
      })
      //保存分享数据
      var saveShareData = function(data) {
        pomelo.request("area.shareHandler.saveShareData", {data:data}, function(data) {
            console.log(data);
        });
      }
      //获取分享数据
      var getShareData = function(shareId) {
        pomelo.request("area.shareHandler.getShareData", {shareId:shareId}, function(data) {
            console.log(data);
        });
      }
      //挑战魔物入侵
      var challengeInvade = function() {
        pomelo.request("area.activityHandler.challengeInvade", {}, function(data) {
            console.log(data);
        });
      }
      //==============山海秘境==========//
      //获取关卡数据
      var getMysteriousData = function() {
        pomelo.request("area.mysteriousHandler.getMysteriousData", {}, function(data) {
            console.log(data);
        });
      }
      //挑战关卡
      var challengeMysterious = function(lv,verify) {
        pomelo.request("area.mysteriousHandler.challengeMysterious", {lv:lv,verify:verify}, function(data) {
            console.log(data);
        });
      }
      //扫荡关卡
      var mopupMysterious = function(lv) {
        pomelo.request("area.mysteriousHandler.mopupMysterious", {lv:lv}, function(data) {
            console.log(data);
        });
      }
      //购买次数
      var buyMysteriousCount = function() {
        pomelo.request("area.mysteriousHandler.buyMysteriousCount", {}, function(data) {
            console.log(data);
        });
      }
      //领取章节宝箱
      var gaintMysteriousBox = function(chapter,index) {
        pomelo.request("area.mysteriousHandler.gaintMysteriousBox", {chapter:chapter,index:index}, function(data) {
            console.log(data);
        });
      }
      //获取排行榜
      var getMysteriousRank = function() {
        pomelo.request("area.mysteriousHandler.getMysteriousRank", {}, function(data) {
            console.log(data);
        });
      }
      //==============主题招募==========//
      //获取主题招募数据
      var getTopicRecruitData = function() {
        pomelo.request("area.recruitHandler.getTopicRecruitData", {}, function(data) {
            console.log(data);
        });
      }
      //主题招募一次
      var topicRecruitOnce = function() {
        pomelo.request("area.recruitHandler.topicRecruitOnce", {}, function(data) {
            console.log(data);
        });
      }
      //主题招募十次
      var topicRecruitMultiple = function() {
        pomelo.request("area.recruitHandler.topicRecruitMultiple", {}, function(data) {
            console.log(data);
        });
      }
      //领取主题招募奖励
      var gainTopicRecruitBoxAward = function(index) {
        pomelo.request("area.recruitHandler.gainTopicRecruitBoxAward", {index:index}, function(data) {
            console.log(data);
        });
      }
      //充值天数礼包
      var gainRPayDaysAward = function(id) {
        pomelo.request("area.activityHandler.gainRPayDaysAward", {id:id}, function(data) {
            console.log(data);
        });
      }
      //每日首充礼包
      var gainRechargeDayAward = function(id) {
        pomelo.request("area.activityHandler.gainRechargeDayAward", {id:id}, function(data) {
            console.log(data);
        });
      }
      //领取每周累充奖励
      var gainRechargeWeekAward = function(id) {
        pomelo.request("area.activityHandler.gainRechargeWeekAward", {id:id}, function(data) {
            console.log(data);
        });
      }
      //==============挑战山海==========//
      //获取挑战山海数据数据
      var getAreaChallengeData = function() {
        pomelo.request("area.activityHandler.getAreaChallengeData", {}, function(data) {
            console.log(data);
        });
      }
      //挑战山海BOSS
      var areaChallenge = function(verify) {
        pomelo.request("area.activityHandler.areaChallenge", {verify:verify}, function(data) {
            console.log(data);
        });
      }
      //==============限时礼包==========//
      //获取限时礼包数据
      var getLimitGiftData = function() {
        pomelo.request("area.activityHandler.getLimitGiftData", {}, function(data) {
            console.log(data);
        });
      }
      //购买限时礼包
      var buyLimitGift = function(id) {
        pomelo.request("area.activityHandler.buyLimitGift", {id,id}, function(data) {
            console.log(data);
        });
      }
      //==============元神抽奖==========//
      //获取元神抽奖数据
      var getaceLottoData = function() {
        pomelo.request("area.aceLottoHandler.getaceLottoData", {}, function(data) {
            console.log(data);
        });
      }
      //免费元神抽奖
      var aceLottoFree = function() {
        pomelo.request("area.aceLottoHandler.aceLottoFree", {}, function(data) {
            console.log(data);
        });
      }
      //单次元神抽奖
      var aceLottoOnce = function() {
        pomelo.request("area.aceLottoHandler.aceLottoOnce", {}, function(data) {
            console.log(data);
        });
      }
      //十连元神抽奖
      var aceLottoMultiple = function() {
        pomelo.request("area.aceLottoHandler.aceLottoMultiple", {}, function(data) {
            console.log(data);
        });
      }
      //==============寻宝==========//
      //获取寻宝数据
      var getSTData = function() {
        pomelo.request("area.stHandler.getSTData", {}, function(data) {
            console.log(data);
        });
      }
      //获取寻宝记录
      var getSTRecord = function() {
        pomelo.request("area.stHandler.getSTRecord", {}, function(data) {
            console.log(data);
        });
      }
      //普通寻宝单次
      var normalSTSeek = function() {
        pomelo.request("area.stHandler.normalSTSeek", {}, function(data) {
            console.log(data);
        });
      }
      //普通寻宝十五次
      var normalSTMultiple = function() {
        pomelo.request("area.stHandler.normalSTMultiple", {}, function(data) {
            console.log(data);
        });
      }
      //免费刷新普通寻宝
      var normalSTFreeRefresh = function() {
        pomelo.request("area.stHandler.normalSTFreeRefresh", {}, function(data) {
            console.log(data);
        });
      }
      //付费刷新普通寻宝
      var normalSTBuyRefresh = function() {
        pomelo.request("area.stHandler.normalSTBuyRefresh", {}, function(data) {
            console.log(data);
        });
      }
      //领取普通寻宝幸运宝箱
      var gainSTNormalBox = function(boxId) {
        pomelo.request("area.stHandler.gainSTNormalBox", {boxId:boxId}, function(data) {
            console.log(data);
        });
      }
      //高级寻宝单次
      var highSTSeek = function() {
        pomelo.request("area.stHandler.highSTSeek", {}, function(data) {
            console.log(data);
        });
      }
      //高级寻宝十五次
      var highSTMultiple = function() {
        pomelo.request("area.stHandler.highSTMultiple", {}, function(data) {
            console.log(data);
        });
      }
      //免费刷新高级寻宝
      var highSTFreeRefresh = function() {
        pomelo.request("area.stHandler.highSTFreeRefresh", {}, function(data) {
            console.log(data);
        });
      }
      //付费刷新高级寻宝
      var highSTBuyRefresh = function() {
        pomelo.request("area.stHandler.highSTBuyRefresh", {}, function(data) {
            console.log(data);
        });
      }
      //领取高级寻宝幸运宝箱
      var gainSTHighBox = function(boxId) {
        pomelo.request("area.stHandler.gainSTHighBox", {boxId:boxId}, function(data) {
            console.log(data);
        });
      }
      //==============奖励邮件==========//
      //设置全服邮件
      var setAreaMail = function(areaList,title,text,atts,time) {
        pomelo.request("admin.adminHandler.setAreaMail", {areaList:areaList,title:title,text:text,atts:atts,time:time}, function(data) {
            console.log(data);
        });
      }
      //获取全服邮件
      var getAreaMailList = function(areaId) {
        pomelo.request("admin.adminHandler.getAreaMailList", {areaId:areaId}, function(data) {
            console.log(data);
        });
      }
      //删除全服邮件
      var deleteAreaMailList = function(areaId,id) {
        pomelo.request("admin.adminHandler.deleteAreaMailList", {areaId:areaId,id:id}, function(data) {
            console.log(data);
        });
      }
      //查询玩家信息
      var getPlayerInfo = function(areaId,uid) {
        pomelo.request("admin.adminHandler.getPlayerInfo", {areaId:areaId,id:id}, function(data) {
            console.log(data);
        });
      }
      //发送个人邮件
      var adminSendMail = function(areaId,uid,title,text,atts) {
        pomelo.request("admin.adminHandler.adminSendMail", {areaId:areaId,uid:uid,title:title,text:text,atts:atts}, function(data) {
            console.log(data);
        });
      }
      //设置公告
      var setNotify = function(notify) {
        pomelo.request("admin.adminHandler.setNotify", {notify:notify}, function(data) {
            console.log(data);
        });
      }
      //直接充值
      var rechargeToUser = function(uid,pay_id) {
        pomelo.request("admin.adminHandler.rechargeToUser", {uid:uid,pay_id:pay_id}, function(data) {
            console.log(data);
        });
      }
      //==============礼包码============//
      //创建礼包码类型
      var createCDType = function(type,award,des) {
        pomelo.request("admin.cdkeyHandler.createCDType", {type:type,award:award,des:des}, function(data) {
            console.log(data);
        });
      }
      //禁用礼包码类型
      var pauseCDType = function(type) {
        pomelo.request("admin.cdkeyHandler.pauseCDType", {type:type}, function(data) {
            console.log(data);
        });
      }
      //恢复礼包码类型
      var resumeCDType = function(type) {
        pomelo.request("admin.cdkeyHandler.resumeCDType", {type:type}, function(data) {
            console.log(data);
        });
      }
      //获取礼包码类型表总页数
      var getCDTypePage = function() {
        pomelo.request("admin.cdkeyHandler.getCDTypePage", {}, function(data) {
            console.log(data);
        });
      }
      //获取礼包码类型表一页数据
      var getCDTypeList = function(dataNum) {
        pomelo.request("admin.cdkeyHandler.getCDTypeList", {dataNum:dataNum}, function(data) {
            console.log(data);
        });
      }
      //生成礼包码
      var createCDKey = function(type,num,count,expires) {
        pomelo.request("admin.cdkeyHandler.createCDKey", {type:type,num:num,count:count,expires:expires}, function(data) {
            console.log(data);
        });
      }
      //获取礼包码数据
      var getCDKeyInfo = function(key) {
        pomelo.request("admin.cdkeyHandler.getCDKeyInfo", {key:key}, function(data) {
            console.log(data);
        });
      }
      //激活礼包码
      var verifyCDKey = function(key) {
        pomelo.request("area.normalHandler.verifyCDKey", {key:key}, function(data) {
            console.log(data);
        });
      }
      //获取聊天记录表表总页数
      var getChatRecordPage = function() {
        pomelo.request("admin.adminHandler.getChatRecordPage", {}, function(data) {
            console.log(data);
        });
      }
      //获取聊天记录表表一页数据
      var getChatRecordList = function(dataNum) {
        pomelo.request("admin.adminHandler.getChatRecordList", {dataNum:dataNum}, function(data) {
            console.log(data);
        });
      }
      //==============活动==============//
      //购买每日礼包
      var buyAwardBagday = function(index) {
        pomelo.request("area.activityHandler.buyAwardBagday", {index:index}, function(data) {
            console.log(data);
        });
      }
      //获取每周礼包与每月礼包购买记录
      var getWeekAndMonthRecord = function() {
        pomelo.request("area.activityHandler.getWeekAndMonthRecord", {}, function(data) {
            console.log(data);
        });
      }
      //购买每周礼包
      var buyAwardBagWeek = function(index) {
        pomelo.request("area.activityHandler.buyAwardBagWeek", {index:index}, function(data) {
            console.log(data);
        });
      }
      //购买每月礼包
      var buyAwardBagMonth = function(index) {
        pomelo.request("area.activityHandler.buyAwardBagMonth", {index:index}, function(data) {
            console.log(data);
        });
      }
      //领取消耗活动奖励
      var gainConsumeTotalAward = function(index) {
        pomelo.request("area.activityHandler.gainConsumeTotalAward", {index:index}, function(data) {
            console.log(data);
        });
      }
      //获取冲榜活动排行榜
      var getAreaRank = function() {
        pomelo.request("area.activityHandler.getAreaRank", {}, function(data) {
            console.log(data);
        });
      }
      //领取冲榜奖励
      var gainAreaRankAward = function() {
        pomelo.request("area.activityHandler.gainAreaRankAward", {}, function(data) {
            console.log(data);
        });
      }
      //领取首充礼包
      var gainFirstRechargeAward = function() {
        pomelo.request("area.activityHandler.gainFirstRechargeAward", {}, function(data) {
            console.log(data);
        });
      }
      //领取累充奖励
      var gainRechargeTotalAward = function(index) {
        pomelo.request("area.activityHandler.gainRechargeTotalAward", {index:index}, function(data) {
            console.log(data);
        });
      }
      //领取单充奖励
      var gainRechargeOnceAward = function(index) {
        pomelo.request("area.activityHandler.gainRechargeOnceAward", {index:index}, function(data) {
            console.log(data);
        });
      }
      //获取活动数据
      var getActivityData = function() {
        pomelo.request("area.activityHandler.getActivityData", {}, function(data) {
            console.log(data);
        });
      }
      //激活等级基金
      var activateLvFund = function() {
        pomelo.request("area.activityHandler.activateLvFund", {}, function(data) {
            console.log(data);
        });
      }
      //领取等级奖励
      var gainActivityLvAward = function(index) {
        pomelo.request("area.activityHandler.gainActivityLvAward", {index:index}, function(data) {
            console.log(data);
        });
      }
      //领取战力奖励
      var gainActivityCeAward = function(index) {
        pomelo.request("area.activityHandler.gainActivityCeAward", {index:index}, function(data) {
            console.log(data);
        });
      }
      //领取普通月卡
      var gainNormalCardAward = function() {
        pomelo.request("area.activityHandler.gainNormalCardAward", {}, function(data) {
            console.log(data);
        });
      }
      //激活专属月卡
      var activateHighCard = function() {
        pomelo.request("area.activityHandler.activateHighCard", {}, function(data) {
            console.log(data);
        });
      }
      //领取专属月卡
      var gainHighCardAward = function() {
        pomelo.request("area.activityHandler.gainHighCardAward", {}, function(data) {
            console.log(data);
        });
      }
      //领取VIP免费礼包
      var gainVipAward = function(vip) {
        pomelo.request("area.activityHandler.gainVipAward", {vip:vip}, function(data) {
            console.log(data);
        });
      }
      //购买VIP付费礼包
      var buyVipAward = function(vip) {
        pomelo.request("area.activityHandler.buyVipAward", {vip:vip}, function(data) {
            console.log(data);
        });
      }
      //获得活动数据
      var buyVipAward = function(vip) {
        pomelo.request("area.activityHandler.buyVipAward", {vip:vip}, function(data) {
            console.log(data);
        });
      }
      //签到
      var gainSignInAward = function() {
        pomelo.request("area.activityHandler.gainSignInAward", {}, function(data) {
            console.log(data);
        });
      }
      //领取签到宝箱
      var gainSignInBox = function(index) {
        pomelo.request("area.activityHandler.gainSignInBox", {index:index}, function(data) {
            console.log(data);
        });
      }
      //在线奖励
      var gainOnlineTimeAward = function() {
        pomelo.request("area.activityHandler.gainOnlineTimeAward", {}, function(data) {
            console.log(data);
        });
      }
      //申请充值
      var apply_recharge = function(pay_id) {
        pomelo.request("area.activityHandler.apply_recharge", {pay_id : pay_id}, function(data) {
            console.log(data);
        });
      }
      //测试充值
      var test_recharge = function(pay_id) {
        pomelo.request("area.activityHandler.test_recharge", {pay_id : pay_id}, function(data) {
            console.log(data);
        });
      }
      //============七日目标============//
      //获取七日目标数据
      var getWeekTargetData = function() {
        pomelo.request("area.weekTargetHandler.getWeekTargetData", {}, function(data) {
            console.log(data);
        });
      }
      //领取七天登陆礼包
      var gainLoginAward = function(day) {
        pomelo.request("area.weekTargetHandler.gainLoginAward", {day : day}, function(data) {
            console.log(data);
        });
      }
      //领取每日礼包
      var gainDayAward = function(day) {
        pomelo.request("area.weekTargetHandler.gainDayAward", {day : day}, function(data) {
            console.log(data);
        });
      }
      //领取等级礼包
      var gainLvAward = function(day) {
        pomelo.request("area.weekTargetHandler.gainLvAward", {day : day}, function(data) {
            console.log(data);
        });
      }
      //领取充值礼包
      var gainRmbAward = function(day) {
        pomelo.request("area.weekTargetHandler.gainRmbAward", {day : day}, function(data) {
            console.log(data);
        });
      }
      //购买限购礼包
      var buyWeekTargetGoods = function(day,index) {
        pomelo.request("area.weekTargetHandler.buyWeekTargetGoods", {day : day,index : index}, function(data) {
            console.log(data);
        });
      }
      //领取七日任务宝箱
      var gainWeekTargetBox = function(boxId) {
        pomelo.request("area.weekTargetHandler.gainWeekTargetBox", {boxId : boxId}, function(data) {
            console.log(data);
        });
      }

      var getPlayerData = function() {
        pomelo.request("area.normalHandler.getPlayerData", {}, function(data) {
            console.log(data);
        });
      }
      //改名
      var changeName = function(name) {
        pomelo.request("area.normalHandler.changeName", {name : name}, function(data) {
            console.log(data);
        });
      }
      //============开服计划============//
      //获取服务器列表
      var getServerList = function() {
        pomelo.request("admin.adminHandler.getServerList", {}, function(data) {
            console.log(data);
        });
      }
      //暂停服务器
      var pauseArea = function(areaId) {
        pomelo.request("admin.adminHandler.pauseArea", {areaId : areaId}, function(data) {
            console.log(data);
        });
      }
      //恢复服务器
      var resumeArea = function(areaId) {
        pomelo.request("admin.adminHandler.resumeArea", {areaId : areaId}, function(data) {
            console.log(data);
        });
      }
      //设置开服计划
      var setOpenPlan = function(time) {
        pomelo.request("admin.adminHandler.setOpenPlan", {time : time}, function(data) {
            console.log(data);
        });
      }
      //删除开服计划
      var delOpenPlan = function(time) {
        pomelo.request("admin.adminHandler.delOpenPlan", {time : time}, function(data) {
            console.log(data);
        });
      }
      //获取开服计划
      var getOpenPlan = function() {
        pomelo.request("admin.adminHandler.getOpenPlan", {}, function(data) {
            console.log(data);
        });
      }
      //设置合服计划
      var setMergePlan = function(areaList,time) {
        pomelo.request("admin.adminHandler.setMergePlan", {areaList : areaList,time : time}, function(data) {
            console.log(data);
        });
      }
      //删除合服计划
      var delMergePlan = function(time) {
        pomelo.request("admin.adminHandler.delMergePlan", {time : time}, function(data) {
            console.log(data);
        });
      }
      //获取合服计划
      var getMergePlan = function() {
        pomelo.request("admin.adminHandler.getMergePlan", {}, function(data) {
            console.log(data);
        });
      }
      //设置头像
      var changeHead = function(id) {
        pomelo.request("area.normalHandler.changeHead", {id : id}, function(data) {
            console.log(data);
        });
      }
      var openArea = function() {
        pomelo.request("admin.adminHandler.openArea", {}, function(data) {
            console.log(data);
        });
      }
      //获取服务器信息
      var getAreaServerInfos = function() {
        pomelo.request("admin.adminHandler.getAreaServerInfos", {}, function(data) {
            console.log(data);
        });
      }
      //获取服务器成员
      var getAreaPlayers = function(areaId) {
        pomelo.request("admin.adminHandler.getAreaPlayers", {areaId : areaId}, function(data) {
            console.log(data);
        });
      }
      //============跨服段位赛============//
      //匹配战斗
      var matchGrading = function() {
        pomelo.request("cross.gradingHandler.matchGrading", {}, function(data) {
            console.log(data);
        });
      }
      //获取跨服段位赛数据
      var getGradingData = function() {
        pomelo.request("cross.gradingHandler.getGradingData", {}, function(data) {
            console.log(data);
        });
      }
      //使用挑战券
      var useGradingItem = function() {
        pomelo.request("cross.gradingHandler.useGradingItem", {}, function(data) {
            console.log(data);
        });
      }
      //领取段位奖励
      var gainGradingAward = function(glv) {
        pomelo.request("cross.gradingHandler.gainGradingAward", {glv : glv}, function(data) {
            console.log(data);
        });
      }
      //获取赛季封神榜
      var getGradingHonor = function(seasonId) {
        pomelo.request("cross.gradingHandler.getGradingHonor", {seasonId : seasonId}, function(data) {
            console.log(data);
        });
      }
      //============游历任务==============//
      //获取游历任务数据
      var getTourData = function() {
        pomelo.request("area.tourHandler.getTourData", {}, function(data) {
            console.log(data);
        });
      }
      //元宝刷新游历任务
      var refreshTourByGold = function() {
        pomelo.request("area.tourHandler.refreshTourByGold", {}, function(data) {
            console.log(data);
        });
      }
      //刷新券刷新游历任务
      var refreshTourByItem = function() {
        pomelo.request("area.tourHandler.refreshTourByItem", {}, function(data) {
            console.log(data);
        });
      }
      //进行游历任务
      var runTour = function(index,hIds) {
        pomelo.request("area.tourHandler.runTour", {index:index,hIds:hIds}, function(data) {
            console.log(data);
        });
      }
      //领取游历任务奖励
      var gainTourAward = function(id) {
        pomelo.request("area.tourHandler.gainTourAward", {id:id}, function(data) {
            console.log(data);
        });
      }
      //加速完成游历任务
      var speedUpTour = function(id) {
        pomelo.request("area.tourHandler.speedUpTour", {id:id}, function(data) {
            console.log(data);
        });
      }
      //============逐鹿之战==============//
      //获取逐鹿之战数据
      var getZhuluData = function() {
        pomelo.request("area.zhuluHandler.getZhuluData", {}, function(data) {
            console.log(data);
        });
      }
      //选择格子
      var chooseGrid = function(choose) {
        pomelo.request("area.zhuluHandler.chooseGrid", {choose:choose}, function(data) {
            console.log(data);
        });
      }
      //获取逐鹿战斗数据
      var getZhuluFightData = function() {
        pomelo.request("area.zhuluHandler.getZhuluFightData", {}, function(data) {
            console.log(data);
        });
      }
      //执行格子
      var executeGrid = function(arg) {
        pomelo.request("area.zhuluHandler.executeGrid", {arg:arg}, function(data) {
            console.log(data);
        });
      }
      //放弃格子
      var giveupGrid = function() {
        pomelo.request("area.zhuluHandler.giveupGrid", {}, function(data) {
            console.log(data);
        });
      }
      //选择战利品
      var chooseSpoils = function(index) {
        pomelo.request("area.zhuluHandler.chooseSpoils", {index:index}, function(data) {
            console.log(data);
        });
      }
      //开启宝箱
      var openZhuluBox = function() {
        pomelo.request("area.zhuluHandler.openZhuluBox", {}, function(data) {
            console.log(data);
        });
      }
      //设置逐鹿出场阵容
      var setZhuluTeam = function(hIds) {
        pomelo.request("area.zhuluHandler.setZhuluTeam", {hIds:hIds}, function(data) {
            console.log(data);
        });
      }
      //============全服BOSS==============//
      //获取全服BOSS数据
      var getAreaBossData = function() {
        pomelo.request("area.worldBossHandler.getAreaBossData", {}, function(data) {
            console.log(data);
        });
      }
      //挑战全服BOSS
      var challengeAreaBoss = function() {
        pomelo.request("area.worldBossHandler.challengeAreaBoss", {}, function(data) {
            console.log(data);
        });
      }
      //购买全服BOSS挑战次数
      var buyAreaBossCount = function() {
        pomelo.request("area.worldBossHandler.buyAreaBossCount", {}, function(data) {
            console.log(data);
        });
      }
      //购买全服BOSS伤害增加
      var buyAreaBossUp = function() {
        pomelo.request("area.worldBossHandler.buyAreaBossUp", {}, function(data) {
            console.log(data);
        });
      }
      //领取全服BOSS宝箱奖励
      var gainAreaBossBox = function(index) {
        pomelo.request("area.worldBossHandler.gainAreaBossBox", {index:index}, function(data) {
            console.log(data);
        });
      }
      //获取排行榜
      var getAreaBossRank = function() {
        pomelo.request("area.worldBossHandler.getAreaBossRank", {}, function(data) {
            console.log(data);
        });
      }
      //============世界BOSS==============//
      //获取世界BOSS数据
      var getWorldBossData = function() {
        pomelo.request("area.worldBossHandler.getWorldBossData", {}, function(data) {
            console.log(data);
        });
      }
      //挑战世界BOSS
      var challengeWorldBoss = function() {
        pomelo.request("area.worldBossHandler.challengeWorldBoss", {}, function(data) {
            console.log(data);
        });
      }
      //获取排行榜
      var getWorldBossRank = function() {
        pomelo.request("area.worldBossHandler.getWorldBossRank", {}, function(data) {
            console.log(data);
        });
      }
      //抢夺玩家
      var robWorldBossPlayer = function(targetUid) {
        pomelo.request("area.worldBossHandler.robWorldBossPlayer", {targetUid : targetUid}, function(data) {
            console.log(data);
        });
      }
      //============集市相关==============//
      //获取集市数据
      var getBazaarData = function() {
        pomelo.request("area.bazaarHandler.getBazaarData", {}, function(data) {
            console.log(data);
        });
      }
      //免费刷新
      var bazaarRefreshFree = function(type) {
        pomelo.request("area.bazaarHandler.bazaarRefreshFree", {type : type}, function(data) {
            console.log(data);
        });
      }
      //付费刷新
      var bazaarRefreshBuy = function(type) {
        pomelo.request("area.bazaarHandler.bazaarRefreshBuy", {type : type}, function(data) {
            console.log(data);
        });
      }
      //购买物品
      var buyBazzarGoods = function(type,index) {
        pomelo.request("area.bazaarHandler.buyBazzarGoods", {type : type,index : index}, function(data) {
            console.log(data);
        });
      }
      //============任务相关==============//
      //获取任务列表
      var getTaskList = function() {
        pomelo.request("area.taskHandler.getTaskList", {}, function(data) {
            console.log(data);
        });
      }
      //领取任务奖励
      var finishTask = function(taskId) {
        pomelo.request("area.taskHandler.finishTask", {taskId : taskId}, function(data) {
            console.log(data);
        });
      }
      //更新任务进度
      var taskUpdate = function(type) {
        pomelo.request("area.taskHandler.taskUpdate", {type : type}, function(data) {
            console.log(data);
        });
      }
      //获取活跃度数据
      var getLivenessData = function() {
        pomelo.request("area.taskHandler.getLivenessData", {}, function(data) {
            console.log(data);
        });
      }
      //领取活跃度奖励
      var gainLivenessAward = function(index) {
        pomelo.request("area.taskHandler.gainLivenessAward", {index : index}, function(data) {
            console.log(data);
        });
      }
      //获取战令数据
      var getWarHornData = function() {
        pomelo.request("area.taskHandler.getWarHornData", {}, function(data) {
            console.log(data);
        });
      }
      //购买等级
      var advanceWarHorn = function() {
        pomelo.request("area.taskHandler.advanceWarHorn", {}, function(data) {
            console.log(data);
        });
      }
      //购买等级
      var buyWarHornLv = function(count) {
        pomelo.request("area.taskHandler.buyWarHornLv", {count : count}, function(data) {
            console.log(data);
        });
      }
      //领取战令奖励
      var gainWarHornAward = function(lv,type) {
        pomelo.request("area.taskHandler.gainWarHornAward", {lv : lv,type : type}, function(data) {
            console.log(data);
        });
      }
      //============神器相关==============//
      //穿戴神器
      var wearArtifact = function(hId) {
        pomelo.request("area.artifactHandler.wearArtifact", {hId : hId}, function(data) {
            console.log(data);
        });
      }
      //神器升级
      var upgradeArtifact = function(hId) {
        pomelo.request("area.artifactHandler.upgradeArtifact", {hId : hId}, function(data) {
            console.log(data);
        });
      }
      //出售神器
      var sellArtifact = function(aId,count) {
        pomelo.request("area.artifactHandler.sellArtifact", {aId : aId,count : count}, function(data) {
            console.log(data);
        });
      }
      //============锦囊相关==============//
      //穿戴锦囊   aId为锦囊ID   pos为锦囊格子位置   1 - 10
      var wearAcepack = function(aId,hId,pos) {
        pomelo.request("area.acepackHandler.wearAcepack", {aId : aId,hId : hId,pos : pos}, function(data) {
            console.log(data);
        });
      }
      //卸下锦囊
      var unwearAcepack = function(pos,hId) {
        pomelo.request("area.acepackHandler.unwearAcepack", {pos : pos,hId : hId}, function(data) {
            console.log(data);
        });
      }
      //出售锦囊
      var sellAcepack = function(aId,count) {
        pomelo.request("area.acepackHandler.sellAcepack", {aId : aId,count : count}, function(data) {
            console.log(data);
        });
      }
      //合成锦囊  list为材料锦囊   格式为{aId1 : 1,aId2 : 2}类似    总数量为3
      var compoundAcepack = function(aId,list) {
        pomelo.request("area.acepackHandler.compoundAcepack", {aId : aId,list : list}, function(data) {
            console.log(data);
        });
      }
      //============关卡任务相关==============//
      //获取关卡任务数据
      var getCTaskInfo = function() {
        pomelo.request("area.taskHandler.getCTaskInfo", {}, function(data) {
            console.log(data);
        });
      }
      //获取关卡任务奖励
      var getCTaskAward = function(taskId) {
        pomelo.request("area.taskHandler.getCTaskAward", {taskId : taskId}, function(data) {
            console.log(data);
        });
      }
      //============装备相关==============//
      //穿戴装备
      var wearEquip = function(eId,hId) {
        pomelo.request("area.equipHandler.wearEquip", {eId : eId,hId : hId}, function(data) {
            console.log(data);
        });
      }
      //卸下装备
      var unwearEquip = function(part,hId) {
        pomelo.request("area.equipHandler.unwearEquip", {part : part,hId : hId}, function(data) {
            console.log(data);
        });
      }
      //出售装备
      var sellEquip = function(eId,count) {
        pomelo.request("area.equipHandler.sellEquip", {eId : eId,count : count}, function(data) {
            console.log(data);
        });
      }
      //合成装备
      var compoundEquip = function(eId,count) {
        pomelo.request("area.equipHandler.compoundEquip", {eId : eId,count : count}, function(data) {
            console.log(data);
        });
      }
      //============英雄相关==============//
      var mockFight = function() {
        pomelo.request("area.fightHandler.mockFight", {}, function(data) {
            console.log(data);
        });
      }
      //直升六星
      var upgradeStarSimple = function(hId) {
        pomelo.request("area.heroHandler.upgradeStarSimple", {hId : hId}, function(data) {
            console.log(data);
        });
      }
      //英雄重置
      var replaceHero = function(hId) {
        pomelo.request("area.heroHandler.replaceHero", {hId : hId}, function(data) {
            console.log(data);
        });
      }
      //保存重置
      var saveReplace = function() {
        pomelo.request("area.heroHandler.saveReplace", {}, function(data) {
            console.log(data);
        });
      }
      //取消重置
      var cancelReplace = function() {
        pomelo.request("area.heroHandler.cancelReplace", {}, function(data) {
            console.log(data);
        });
      }
      //征募英雄
      var recruitHero = function(type,count) {
        pomelo.request("area.recruitHandler.recruitHero", {type : type,count : count}, function(data) {
            console.log(data);
        });
      }
      //英雄升级
      var upgradeLevel = function(hId,aimLv) {
        pomelo.request("area.heroHandler.upgradeLevel", {hId : hId,aimLv : aimLv}, function(data) {
            console.log(data);
        });
      }
      //英雄升阶
      var upgraAdvance = function(hId) {
        pomelo.request("area.heroHandler.upgraAdvance", {hId : hId}, function(data) {
            console.log(data);
        });
      }
      //英雄升星
      var upgradeStar = function(target,hIds) {
        pomelo.request("area.heroHandler.upgradeStar", {target : target,hIds : hIds}, function(data) {
            console.log(data);
        });
      }
      //增加英雄背包栏
      var addHeroAmount = function() {
        pomelo.request("area.heroHandler.addHeroAmount", {}, function(data) {
            console.log(data);
        });
      }
      //获取英雄背包栏数量
      var getHeroAmount = function() {
        pomelo.request("area.heroHandler.getHeroAmount", {}, function(data) {
            console.log(data);
        });
      }
      //获得英雄
      var gainHero = function(id,ad,lv) {
        pomelo.request("area.heroHandler.gainHero", {id : id,ad : ad,lv : lv}, function(data) {
            console.log(data);
        });
      }
      //删除英雄
      var removeHeros = function(hIds) {
        pomelo.request("area.heroHandler.removeHeros", {hIds : hIds}, function(data) {
            console.log(data);
        });
      }
      //修改英雄属性
      var incrbyHeroInfo = function(hId,name,value) {
        pomelo.request("area.heroHandler.incrbyHeroInfo", {hId : hId,name : name,value : value}, function(data) {
            console.log(data);
        });
      }
      //获取英雄列表
      var getHeros = function() {
        pomelo.request("area.heroHandler.getHeros", {}, function(data) {
            console.log(data);
        });
      }
      //获取英雄图鉴
      var getHeroArchive = function() {
        pomelo.request("area.heroHandler.getHeroArchive", {}, function(data) {
            console.log(data);
        });
      }
      //设置出场阵容
      var setFightTeam = function(hIds) {
        pomelo.request("area.heroHandler.setFightTeam", {hIds : hIds}, function(data) {
            console.log(data);
        });
      }
      //获取出场阵容
      var getFightTeam = function() {
        pomelo.request("area.heroHandler.getFightTeam", {}, function(data) {
            console.log(data);
        });
      }
      //=================================//
      //绑定身份证
      var bindIdentity = function(idcard,name) {
        pomelo.request("connector.identityHandler.bindIdentity", {idcard : idcard,name : name}, function(data) {
            console.log(data);
        });
      }
      //开启宝箱
      var getChestAward = function(chestId) {
        pomelo.request("area.normalHandler.getChestAward", {chestId : chestId}, function(data) {
            console.log(data);
        });
      }
      //开启宝箱str
      var openChestStr = function(str) {
        pomelo.request("area.normalHandler.openChestStr", {str : str}, function(data) {
            console.log(data);
        });
      }
      //============竞技场玩法==============//
      //获取排行榜
      var getRankList = function() {
        pomelo.request("area.arenaHandler.getRankList", {}, function(data) {
            console.log(data);
        });
      }
      //获取目标列表
      var getTargetList = function(cb) {
        pomelo.request("area.arenaHandler.getTargetList", {}, function(data) {
            console.log(data);
            if(cb)
              cb(data)
        });
      }
      //获取目标阵容
      var getAreaTeamByUid = function(targetUid,targetRank) {
        pomelo.request("area.arenaHandler.getAreaTeamByUid", {targetUid : targetUid,targetRank : targetRank}, function(data) {
            console.log(data);
        });
      }
      //获取我的竞技场数据
      var getMyArenaInfo = function(cb) {
        pomelo.request("area.arenaHandler.getMyArenaInfo", {}, function(data) {
            console.log(data);
            if(cb)
              cb(data)
        });
      }
      //获取挑战记录
      var getRerord = function() {
        pomelo.request("area.arenaHandler.getRerord", {}, function(data) {
            console.log(data);
        });
      }
      //挑战目标
      var challengeArena = function() {
        getTargetList(function(data) {
          console.log(data)
          var targetRank = data.data.rankList[0]
          var targetName = data.data.userInfos[0]["name"]
          pomelo.request("area.arenaHandler.challengeArena", {targetName : targetName,targetRank : targetRank}, function(data) {
              console.log(data);
          });
        })
      }
      //购买挑战次数
      var buyArenaCount = function() {
        pomelo.request("area.arenaHandler.buyArenaCount", {}, function(data) {
            console.log(data);
        });
      }
      //购买竞技场奖励商城物品
      var buyArenaShop = function(shopId,count) {
        pomelo.request("area.arenaHandler.buyArenaShop", {shopId : shopId,count : count}, function(data) {
            console.log(data);
        });
      }
      //============运镖玩法================//
      //获取我的押镖信息
      var getEscortInfo = function() {
        pomelo.request("cross.escortHandler.getEscortInfo", {}, function(data) {
            console.log(data);
        });
      }
      //刷新镖车
      var updateEscortCar = function() {
        pomelo.request("cross.escortHandler.updateEscortCar", {}, function(data) {
            console.log(data);
        });
      }
      //开始押镖
      var beginEscort = function() {
        pomelo.request("cross.escortHandler.beginEscort", {}, function(data) {
            console.log(data);
        });
      }
      //劫镖
      var robEscort = function(target) {
        pomelo.request("cross.escortHandler.robEscort", {target : target}, function(data) {
            console.log(data);
        });
      }
      //订阅镖车信息
      var subscribeCarMessage = function() {
        pomelo.request("cross.escortHandler.subscribeCarMessage", {}, function(data) {
            console.log(data);
        });
      }
      //取消订阅
      var unSubscribeCarMessage = function() {
        pomelo.request("cross.escortHandler.unSubscribeCarMessage", {}, function(data) {
            console.log(data);
        });
      }
      //============跨服相关================//
      //连接跨服服务器
      var loginCross = function() {
        pomelo.request("area.normalHandler.loginCross", {}, function(data) {
            console.log(data);
        });
      }
      var test = function() {
        pomelo.request("cross.crossHandler.test", {}, function(data) {
            console.log(data);
        });
      }
      //============通天塔================//
      //获取通天塔数据
      var getTTTInfo = function() {
        pomelo.request("area.tttHandler.getTTTInfo", {}, function(data) {
            console.log(data);
        });
      }
      //挑战下一关BOSS
      var challengeTTTBoss = function(readList,verify) {
        pomelo.request("area.tttHandler.challengeTTTBoss", {readList : readList,verify : verify}, function(data) {
            console.log(data);
        });
      }
      //扫荡到最高等级
      var TTTmopup = function(level) {
        pomelo.request("area.tttHandler.TTTmopup", {level : level}, function(data) {
            console.log(data);
        });
      }
      //领取通关
      var getTTTAwards = function() {
        pomelo.request("area.tttHandler.getTTTAwards", {}, function(data) {
            console.log(data);
        });
      }
      //============副本================//
      //开启副本
      var openFB = function(type) {
        pomelo.request("area.fbHandler.openFB", {type : type}, function(data) {
            console.log(data);
        });
      }
      //退出副本
      var quitFB = function(type) {
        pomelo.request("area.fbHandler.quitFB", {type : type}, function(data) {
            console.log(data);
        });
      }
      //挑战副本BOSS
      var challengeFBBoss = function(type,readList,verify) {
        pomelo.request("area.fbHandler.challengeFBBoss", {type : type,readList : readList,verify : verify}, function(data) {
            console.log(data);
        });
      }
      //获取副本信息
      var getFBInfo = function() {
        pomelo.request("area.fbHandler.getFBInfo", {}, function(data) {
            console.log(data);
        });
      }
      //获取日常副本数据
      var getDailyfbInfo = function() {
        pomelo.request("area.fbHandler.getDailyfbInfo", {}, function(data) {
            console.log(data);
        });
      }
      //挑战日常副本
      var challengeDailyfb = function(fbId,verify) {
        pomelo.request("area.fbHandler.challengeDailyfb", {fbId : fbId,verify : verify}, function(data) {
            console.log(data);
        });
      }
      //============神器================//
      //神器激活
      var artifactActivate = function(aId) {
        pomelo.request("area.heroHandler.artifactActivate", {aId : aId}, function(data) {
            console.log(data);
        });
      }
      //神器进阶
      var artifactAdvance = function(aId) {
        pomelo.request("area.heroHandler.artifactAdvance", {aId : aId}, function(data) {
            console.log(data);
        });
      }
      //神器升星
      var artifactStar = function(aId) {
        pomelo.request("area.heroHandler.artifactStar", {aId : aId}, function(data) {
            console.log(data);
        });
      }
      //穿戴神器
      var dressedArtifact = function(aId) {
        pomelo.request("area.heroHandler.dressedArtifact", {aId : aId}, function(data) {
            console.log(data);
        });
      }
      //拆卸神器
      var takeofArtifact = function(type) {
        pomelo.request("area.heroHandler.takeofArtifact", {type : type}, function(data) {
            console.log(data);
        });
      }
      //============伙伴================//
      //伙伴升星
      var partnerUpgradeStar = function(characterId) {
        pomelo.request("area.partnerHandler.partnerUpgradeStar", {characterId : characterId}, function(data) {
            console.log(data);
        });
      }
      //激活伙伴
      var activatePartner = function(characterId) {
        pomelo.request("area.partnerHandler.activatePartner", {characterId : characterId}, function(data) {
            console.log(data);
        });
      }
      //获取已获得转生被动技能列表
      var getLearnPassiveList = function(characterId,samsara) {
        pomelo.request("area.partnerHandler.getLearnPassiveList", {characterId : characterId,samsara : samsara}, function(data) {
            console.log(data);
        });
      }
      //重置转生技能
      var resetLearnPassive = function(characterId,samsara) {
        pomelo.request("area.partnerHandler.resetLearnPassive", {characterId : characterId,samsara : samsara}, function(data) {
            console.log(data);
        });
      }
      //学习转生被动技能
      var learnPassive = function(characterId,samsara,index) {
        pomelo.request("area.partnerHandler.learnPassive", {characterId : characterId,samsara : samsara,index : index}, function(data) {
            console.log(data);
        });
      }
      //============宝石================//
      //获取宝石列表
      var getGemList = function() {
        pomelo.request("area.gemHandler.getGemList", {}, function(data) {
            console.log(data);
        });
      }
      //购买宝石
      var buyGem = function(gId,level,count) {
        pomelo.request("area.gemHandler.buyGem", {gId : gId,level : level,count : count}, function(data) {
            console.log(data);
        });
      }
      //出售宝石
      var sellGem = function(glist) {
        pomelo.request("area.gemHandler.sellGem", {glist : glist}, function(data) {
            console.log(data);
        });
      }
      //镶嵌宝石
      var inlayGem = function(eId,slot,gstr) {
        pomelo.request("area.gemHandler.inlayGem", {eId : eId,slot : slot,gstr : gstr}, function(data) {
            console.log(data);
        });
      }
      //卸下宝石
      var takeofGem = function(eId,slot) {
        pomelo.request("area.gemHandler.takeofGem", {eId : eId,slot : slot}, function(data) {
            console.log(data);
        });
      }
      //合成宝石
      var compoundGem = function(gId,level,glist) {
        pomelo.request("area.gemHandler.compoundGem", {gId : gId,level : level,glist : glist}, function(data) {
            console.log(data);
        });
      }
      //============邮件================//
      //邮件列表
      var getMailList = function() {
        pomelo.request("area.mailHandler.getMailList", {}, function(data) {
            console.log(data);
        });
      }
      //发送邮件
      var sendMail = function(title,text,atts) {
        pomelo.request("area.mailHandler.sendMail", {title : title,text : text,atts : atts}, function(data) {
            console.log(data);
        });
      }
      //领取邮件附件
      var gainMailAttachment = function(index,id) {
        pomelo.request("area.mailHandler.gainMailAttachment", {index : index,id : id}, function(data) {
            console.log(data);
        });
      }
      //阅读邮件
      var readMail = function(index,id) {
        pomelo.request("area.mailHandler.readMail", {index : index,id : id}, function(data) {
            console.log(data);
        });
      }
      //删除邮件
      var deleteMail = function(index,id) {
        pomelo.request("area.mailHandler.deleteMail", {index : index,id : id}, function(data) {
            console.log(data);
        });
      }
      //一键领取
      var gainAllMailAttachment = function() {
        pomelo.request("area.mailHandler.gainAllMailAttachment", {}, function(data) {
            console.log(data);
        });
      }
      //一键删除已读
      var deleteAllReadMail = function() {
        pomelo.request("area.mailHandler.deleteAllReadMail", {}, function(data) {
            console.log(data);
        });
      }
      //=========================================//
      //获取服务器列表
      var getAreaList = function(index) {
        pomelo.request("connector.loginHandler.getAreaList", {index : index}, function(data) {
            console.log(data);
        });
      }
      //选择服务器
      var chooseArea = function(areaId) {
        pomelo.request("connector.loginHandler.chooseArea", {areaId : areaId}, function(data) {
            console.log(data);
        });
      }
      //获取角色列表
      var getPlayerList = function(accId) {
        pomelo.request("connector.loginHandler.getPlayerList", {accId : accId}, function(data) {
            console.log(data);
        });
      }
      //获取该服务器角色信息
      var getPlayerInfo = function(areaId) {
        pomelo.request("connector.loginHandler.getPlayerInfo", {areaId : areaId}, function(data) {
            console.log(data);
        });
      }
      //获取随机名字
      var getRandomName = function(sex) {
        pomelo.request("connector.loginHandler.getRandomName", {sex : sex}, function(data) {
            console.log(data);
        });
      }
      //注册角色
      var register = function(areaId,name,sex) {
        pomelo.request("connector.loginHandler.register", {areaId : areaId,name : name,sex : sex}, function(data) {
            console.log(data);
        });
      }
      //登录服务器
      var loginArea = function(areaId) {
        pomelo.request("connector.loginHandler.loginArea", {areaId : areaId}, function(data) {
            console.log(data);
        });
      }
      //获取所处服务器
      var getLocationAreaId = function() {
        pomelo.request("connector.loginHandler.getLocationAreaId", {}, function(data) {
            console.log(data);
        });
      }
      //加入聊天室
      var joinChatRoom = function(roomName) {
        pomelo.request("chat.chatHandler.joinChatRoom",{roomName : roomName}, function(data) {
            console.log(data);
        });
      }
      //离开聊天室
      var leaveChatRoom = function(roomName) {
        pomelo.request("chat.chatHandler.leaveChatRoom",{roomName : roomName}, function(data) {
            console.log(data);
        });
      }
      //发送聊天消息
      var say = function(roomName,text) {
        pomelo.notify("chat.chatHandler.say",{roomName : roomName,text : text}, function(data) {
            console.log(data);
        });
      }
      //激活管理员模式
      var activatePrivileges = function() {
        pomelo.request("admin.adminHandler.activatePrivileges", {}, function(data) {
            console.log(data);
        });
      }
      //模糊查找玩家信息
      var nameMatching = function(name,cursor) {
        pomelo.request("admin.adminHandler.nameMatching", {name:name,cursor:cursor}, function(data) {
            console.log(data);
        });
      }
      //冻结角色
      var freezeUid = function(uid,value) {
        pomelo.request("admin.adminHandler.freezeUid", {uid:uid,value:value}, function(data) {
            console.log(data);
        });
      }
      //冻结账号
      var freezeAcc = function(uid,value) {
        pomelo.request("admin.adminHandler.freezeAcc", {uid:uid,value:value}, function(data) {
            console.log(data);
        });
      }
      //发放物品
      var sendItem = function(target,itemId,value) {
        pomelo.request("area.adminArea.sendItem", {target : target,itemId : itemId,value : value}, function(data) {
            console.log(data);
        })
      }
      //改变英雄星级
      var changeStar = function(hId,value) {
        pomelo.request("area.adminArea.changeStar", {hId : hId,value : value}, function(data) {
            console.log(data);
        })
      }
      //改变英雄阶级
      var changeAdvance = function(hId,value) {
        pomelo.request("area.adminArea.changeAdvance", {hId : hId,value : value}, function(data) {
            console.log(data);
        })
      }
      //改变英雄等级
      var changeLevel = function(hId,value) {
        pomelo.request("area.adminArea.changeLevel", {hId : hId,value : value}, function(data) {
            console.log(data);
        })
      }
      //获取聊天室列表
      var getChatRooms = function() {
        pomelo.request("chat.adminChat.getChatRooms", {}, function(data) {
            console.log(data);
        });
      }
      //获取聊天室成员
      var getMembers = function(roomName) {
        pomelo.request("chat.adminChat.getMembers", {roomName : roomName}, function(data) {
            console.log(data);
        });
      }
      //准备战斗
      var readyFight = function() {
        pomelo.request("area.fightHandler.readyFight",{}, function(data) {
            console.log(data);
        })
      }
      //领取章节宝箱
      var gainChapterAwardBox = function(chapterId) {
        pomelo.request("area.fightHandler.gainChapterAwardBox",{chapterId : chapterId}, function(data) {
            console.log(data);
        })
      }
      var challengeCheckpoints = function(seededNum,readList) {
        pomelo.request("area.fightHandler.challengeCheckpoints",{seededNum : seededNum,readList : readList}, function(data) {
            console.log(data);
        })
      }
      var getCheckpointsInfo = function() {
        pomelo.request("area.fightHandler.getCheckpointsInfo",{}, function(data) {
            console.log(data);
        })
      }
      //otps包含  itemId   value 及使用物品其他参数   如经验丹需characterId
      var useItem = function(otps) {
        pomelo.request("area.normalHandler.useItem",otps, function(data) {
            console.log(data);
        })
      }
      //增加背包物品  测试功能
      var addItem = function(itemId,value) {
        pomelo.request("area.normalHandler.addItem",{itemId : itemId,value : value}, function(data) {
            console.log(data);
        })
      }
      //增加物品str  测试功能
      var addItemStr = function(str,rate) {
        pomelo.request("area.normalHandler.addItemStr",{str : str,rate : rate}, function(data) {
            console.log(data);
        })
      }
      //快速挂机奖励
      var getQuickOnhookAward = function() {
        pomelo.request("area.normalHandler.getQuickOnhookAward",{}, function(data) {
            console.log(data);
        })
      }
      //获取在线挂机奖励
      var getOnhookAward = function() {
        pomelo.request("area.normalHandler.getOnhookAward",{}, function(data) {
            console.log(data);
        })
      }
      //角色进阶
      var characterAdvanced = function(characterId) {
        pomelo.request("area.normalHandler.characterAdvanced",{characterId : characterId}, function(data) {
            console.log(data);
        })
      }
      //宠物进阶
      var petAdvanced = function(id) {
        pomelo.request("area.petHandler.petAdvanced",{id : id}, function(data) {
            console.log(data);
        })
      }
      //角色转生
      var characterSamsara = function(characterId) {
        pomelo.request("area.normalHandler.characterSamsara",{characterId : characterId}, function(data) {
            console.log(data);
        })
      }
      //宠物转生
      var petSamsara = function(id) {
        pomelo.request("area.petHandler.petSamsara",{id : id}, function(data) {
            console.log(data);
        })
      }
      //增加宠物栏
      var addPetAmount = function() {
        pomelo.request("area.petHandler.addPetAmount",{}, function(data) {
            console.log(data);
        })
      }
      //获得宠物
      var obtainPet = function(characterId) {
        pomelo.request("area.petHandler.obtainPet",{characterId : characterId}, function(data) {
            console.log(data);
        })
      }
      //移除宠物
      var removePet = function(id) {
        pomelo.request("area.petHandler.removePet",{id : id}, function(data) {
            console.log(data);
        })
      }
      //设置出战宠物
      var setFightPet = function(id) {
        pomelo.request("area.petHandler.setFightPet",{id : id}, function(data) {
            console.log(data);
        })
      }
      //宠物休息
      var petRest = function() {
        pomelo.request("area.petHandler.petRest",{}, function(data) {
            console.log(data);
        })
      }
      //获取宠物图鉴
      var getPetArchive = function() {
        pomelo.request("area.petHandler.getPetArchive",{}, function(data) {
            console.log(data);
        })
      }
      var variationCount = 0
      //宠物洗练
      var washPet = function(id) {
        pomelo.request("area.petHandler.washPet",{id : id}, function(data) {
            if(data.data.variation){
              variationCount++
              console.log("变异 ",variationCount,data)
              saveWashPet(id)
            }
        })
      }
      //保存洗练效果
      var saveWashPet = function(id) {
        pomelo.request("area.petHandler.saveWashPet",{id : id}, function(data) {
            console.log(data);
        })
      }
      //获取商城数据
      var getShopData = function() {
        pomelo.request("area.normalHandler.getShopData",{}, function(data) {
            console.log(data);
        })
      }
      //购买商城物品
      var buyShop = function(shopId,count) {
        pomelo.request("area.normalHandler.buyShop",{shopId : shopId,count : count}, function(data) {
            console.log(data);
        })
      }
      //直接购买物品
      var buyItem = function(itemId,count) {
        pomelo.request("area.normalHandler.buyItem",{itemId : itemId,count : count}, function(data) {
            console.log(data);
        })
      }
    </script>
  </head>
  <body>
    <div class="g-button">
      登录系统 : 
      <input id="test" type="button" value="登录账号" onclick="entry(10016)"/>
      <input id="test" type="button" value="游客账号" onclick="entry(Date.now())"/>
      <input id="test" type="button" value="渠道账号" onclick="quickEntryAccount()"/>
      <input id="test" type="button" value="注册角色" onclick="register(1,''+Date.now(),1)"/>
      <input id="test" type="button" value="登录服务器" onclick="loginArea(1)"/>
      <input id="test" type="button" value="连接跨服服务器" onclick="loginCross()"/>
      <input id="test" type="button" value="战斗准备" onclick="readyFight()"/>
      <input id="test" type="button" value="快速挂机" onclick="getQuickOnhookAward()"/>
    </div>
    <div class="g-button">
      英雄 : 
      <input id="test" type="button" value="增加英雄背包栏" onclick="addHeroAmount()"/>
      <input id="test" type="button" value="背包栏数量" onclick="getHeroAmount()"/>
      <input id="test" type="button" value="获得英雄" onclick="gainHero()"/>
      <input id="test" type="button" value="删除英雄" onclick="removeHero()"/>
      <input id="test" type="button" value="修改英雄属性" onclick="incrbyHeroInfo()"/>
      <input id="test" type="button" value="获取英雄列表" onclick="getHeros()"/>
      <input id="test" type="button" value="获取英雄图鉴" onclick="getHeroArchive()"/>
    </div>
    <div class="g-button">
      竞技场 : 
      <input id="test" type="button" value="获取排行榜" onclick="getRankList()"/>
      <input id="test" type="button" value="获取目标列表" onclick="getTargetList()"/>
      <input id="test" type="button" value="获取我的竞技场数据" onclick="getMyArenaInfo()"/>
      <input id="test" type="button" value="挑战目标" onclick="challengeArena()"/>
      <input id="test" type="button" value="购买挑战次数" onclick="buyArenaCount()"/>
      <input id="test" type="button" value="获取挑战记录" onclick="getRerord()"/>
    </div>
    <div class="g-button">
      押镖玩法 : 
      <input id="test" type="button" value="参与押镖" onclick="getEscortInfo()"/>
      <input id="test" type="button" value="订阅镖车消息" onclick="subscribeCarMessage()"/>
      <input id="test" type="button" value="取消订阅" onclick="unSubscribeCarMessage()"/>
      <input id="test" type="button" value="开始押镖" onclick="beginEscort()"/>
      <input id="test" type="button" value="更换镖车" onclick="updateEscortCar()"/>
    </div>
    <div class="g-button">
      服务器相关 : 
      <input id="test" type="button" value="开启新服务器" onclick="openArea()"/>
    </div>
    <div class="g-button">
      逐鹿之战 : 
      <input id="test" type="button" value="获取逐鹿数据" onclick="getZhuluData()"/>
      <input id="test" type="button" value="选择格子0" onclick="chooseGrid(0)"/>
      <input id="test" type="button" value="选择格子1" onclick="chooseGrid(1)"/>
      <input id="test" type="button" value="选择格子2" onclick="chooseGrid(2)"/>
      <input id="test" type="button" value="逐鹿战斗数据" onclick="getZhuluFightData()"/>
      <input id="test" type="button" value="执行格子" onclick="executeGrid()"/>
      <input id="test" type="button" value="放弃格子" onclick="giveupGrid()"/>
      <input id="test" type="button" value="选择战利品" onclick="chooseSpoils(1)"/>
    </div>
    <div class="g-button">
      寻宝 : 
      <input id="test" type="button" value="获取寻宝数据" onclick="getSTData()"/>
      <input id="test" type="button" value="普通寻宝" onclick="normalSTSeek()"/>
      <input id="test" type="button" value="普通寻宝十五次" onclick="normalSTMultiple()"/>
      <input id="test" type="button" value="免费刷新普通寻宝" onclick="normalSTFreeRefresh()"/>
      <input id="test" type="button" value="付费刷新普通寻宝" onclick="normalSTBuyRefresh()"/>
      <input id="test" type="button" value="高级寻宝" onclick="highSTSeek()"/>
      <input id="test" type="button" value="高级寻宝十次" onclick="highSTMultiple()"/>
      <input id="test" type="button" value="免费刷新高级寻宝" onclick="highSTFreeRefresh()"/>
      <input id="test" type="button" value="付费刷新高级寻宝" onclick="highSTBuyRefresh()"/>
    </div>
    <div class="g-button">
      元神抽奖 : 
      <input id="test" type="button" value="元神抽奖数据" onclick="getaceLottoData()"/>
      <input id="test" type="button" value="免费元神抽奖" onclick="aceLottoFree()"/>
      <input id="test" type="button" value="单次元神抽奖" onclick="aceLottoOnce()"/>
      <input id="test" type="button" value="十连元神抽奖" onclick="aceLottoMultiple()"/>
    </div>
    <div class="g-button">
      山海秘境 : 
      <input id="test" type="button" value="山海秘境数据" onclick="getMysteriousData()"/>
      <input id="test" type="button" value="购买次数" onclick="buyMysteriousCount()"/>
      <input id="test" type="button" value="排行榜" onclick="getMysteriousRank()"/>
    </div>
    <div class="g-button">
      全服BOSS : 
      <input id="test" type="button" value="全服BOSS数据" onclick="getAreaBossData()"/>
      <input id="test" type="button" value="挑战BOSS" onclick="challengeAreaBoss()"/>
      <input id="test" type="button" value="购买次数" onclick="buyAreaBossCount()"/>
      <input id="test" type="button" value="购买增强" onclick="buyAreaBossUp()"/>
      <input id="test" type="button" value="获取排行榜" onclick="getAreaBossRank()"/>
    </div>
  </body>
</html>